version: "3"

services:
  goaceess:
    image: haibin.lee/goaceess
    container_name: goaceess
    restart: always
    volumes:
      - "/var/log/nginx:/var/log/nginx"
      - "/var/www/html:/var/www/html"
    build:
      context: .
    ports:
      - "7890:7890"
    entrypoint:
      - "goaccess"
      - "/var/log/nginx/access.log"
      - "/var/log/nginx/error.log"
      - "-o"
      - "/var/www/html/nginx_stat.html"
      - "--tz={{ goAccess.timezone | default('Asia/Shanghai') }}"
      - "--log-format"
      - "COMBINED"
      - "--real-time-html"
